package org.linlinjava.litemall.db.vo.order_manage;

import java.util.ArrayList;
import java.util.List;

/**
 * 管理系统订单信息
 * @author houzb
 * @Description
 * @create 2021-08-31 18:29
 */
public class AgedAdminOrderDataVo {
    /**
     * 订单号
     */
    private String orderCode;
    /**
     * 订单创建日期
     */
    private String createTime;
    /**
     * 门店信息
     */
    private String storeName;

    /**
     * 订单状态
     */
    private String orderStatus;


    /**
     * 配送费
     */
    private double freightPrice;
    /**
     * 取货费用
     * TODO 还未获取
     */
    private double pickPrice;
    /**
     * 维护费用
     * //TODO 还未获取
     */
    private double maintainPrice;


    /**
     * 送货费
     */
    private double deliveryPrice;


    /**
     * 订单商品列表
     */
    private List<AgedAdminOrderGoodsVo> goodsVoList;

    public double getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(double freightPrice) {
        this.freightPrice = freightPrice;
    }

    public double getPickPrice() {
        return pickPrice;
    }

    public void setPickPrice(double pickPrice) {
        this.pickPrice = pickPrice;
    }

    public double getMaintainPrice() {
        return maintainPrice;
    }

    public void setMaintainPrice(double maintainPrice) {
        this.maintainPrice = maintainPrice;
    }

    public double getDeliveryPrice() {
        return deliveryPrice;
    }

    public void setDeliveryPrice(double deliveryPrice) {
        this.deliveryPrice = deliveryPrice;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public List<AgedAdminOrderGoodsVo> getGoodsVoList() {
        return goodsVoList;
    }

    public void setGoodsVoList(List<AgedAdminOrderGoodsVo> goodsVoList) {
        this.goodsVoList = goodsVoList;
    }

    public void initGoods(List<AgedAdminOrderItemInfoVo> itemList) {
         this.goodsVoList = new ArrayList<>();
         for(AgedAdminOrderItemInfoVo item:itemList) {
            this.goodsVoList.add(item.getOrderGoodsVo(item));
         }
    }
}
